package tdd;

/**
 * @Author: tong wu
 * @Description:
 * @Version: 1.0
 **/
public class NormalGoods extends Goods {

    public NormalGoods(double quality, int sellIn) {
        super("normal", quality, sellIn);
    }

    @Override
    void updateStock() {
        decreaseQuality();
        decreaseSellIn();

        if (isExpired()) {
            decreaseQuality();
        }
    }
}
